home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / Prograph Classic 2.6.1 / Examples / Super_System_Classes / Styled Text ƒ / Styled Text.ReadMe < prev   
Text File  |  1994-10-21  |  2KB  |  32 lines

  1. Example:      Styled Text
  2. Written by:  Mark Nutter, Prograph User
  3.                    Prograph International (Lynn McKaig)
  4. Contents:     Styled Text.pgs
  5.                    Styled Text.ReadMe
  6.  
  7. Needs Prograph Extensions:
  8.                     Math Primitives
  9.                     More Primitives
  10.                     Primitives
  11.  
  12. Needs Libraries to Compile:
  13.                     SCLibrary 2.6
  14.                     Library 2.6
  15.  
  16. Standard Methods That Were Modified:
  17.                    Universal Initial
  18.                    Application/About
  19.                    Application/Update Menus
  20.  
  21.  
  22. Description
  23. -----------
  24. This file contains Edit Menu, Font Menu, Style Menu and Size Menu classes which are templates for fully-functional menus that you can simply plug into your program.  The Font, Style and Size menus change the font, style or size of the selected text.  The checks in these menus are updated to reflect the currently selected text whenever the user clicks on the menu bar.  The entries in the Size menu are drawn in outline style if a screen version of the current font is available in that size; otherwise the size is drawn in Plain style.  The Font menu is initialised at startup to contain a list of all available fonts on the system the program is currently running on.
  25.  
  26. The Edit Menu contains Cut, Copy, Paste and Clear items which operate in the usual way.  They are also updated to reflect the current selection whenever the user clicks on the menu bar.  The Paste item is enabled if there is data of type 'TEXT' on the clipboard.  The Cut, Copy and Clear items are enabled if one or more characters is selected in the text.
  27.  
  28.  
  29. How to Use in Your Program
  30. -------------------------
  31. Selectively load the Edit Menu, Font Menu, Style Menu and Size Menu classes; then go into the application editor, choose the Menus radio button, and create a New Instance of each menu and add it to the active list.    In your Initial method, add a call to "Font Menu/set font menu" so that the font menu will always be filled with the list of fonts installed on the machine your application is running on.  In the Update Menus method of class Application, add calls to "Edit Menu/update menu" and "Text Style Menus/update menus".
  32.